package com.cyp.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


//等价于<bean id="user" class="com.cyp.pojo.User"/>
@Component
public class User {

    @Value("陈玉鹏")
    public String name;
}
